<?php
/**
 * @file
 * Asks users to invite friends to use GreenInDeed.
 *
 * Usage:
 *  - A hyperlink for users to invite friends to use GreenInDeed should link to
 *    this page.
 *
 * Parameter(s):
 *  - None.
 *
 * GET Parameter(s):
 *  - See 'js_params_get.php'.
 *
 * Global variable(s) set:
 *  - None.
 *
 * Global variable(s) unset:
 *  - None.
 *
 * Exception(s):
 *  - None.
 *
 * This file includes/requires:
 *  - h_greenindeed.php
 *  - fb_friend_exclude.php
 *  - fb_iframe_resize_div.php
 *  - fb_js_feature_loader.php
 *  - header.php
 *  - fb_friend_invite.php
 */

// header file(s) ==============================================================
require_once "h_greenindeed.php";
// hack to get around 'Cannot modify header information ...' problem
require_once $PATH_COMMON . "php/fb_friend_exclude.php";


// implementation ==============================================================
?>
<!DOCTYPE <?php echo FB_XFBML_DOCTYPE ?>>
<html <?php echo FB_XFBML_XMLNS?>>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title><?php echo APP_NAME ?></title>
    <link type="text/css" href="<?php echo CSS_COMMON ?>" rel="stylesheet" />
    <link type="text/css" href="css_greenindeed.css.php" rel="stylesheet" />
    <script type="text/javascript" src="<?php echo JS_JQUERY ?>"></script>
    <?php require_once $PATH_COMMON . "php/js_params_get.php"; ?>
    <script type="text/javascript" src="js_header.js.php"></script>
    <script type="text/javascript">
    // jquery initialization
    $(document).ready(function () {
      // initialize header module
      header_init();
    });
    </script>
  </head>
  <body>
    <?php include "header.php" ?>
    <?php require_once $PATH_COMMON . "php/fb_iframe_resize_div.php" ?>
    <?php require_once $PATH_COMMON . "php/fb_js_feature_loader.php" ?>
    <?php require $PATH_COMMON . "php/fb_friend_invite.php"; ?>
  </body>
</html>
